#ifndef DHT_H_
#define DHT_H_

#include "debug.h"

#define DHT_TIMEOUT 100000

typedef struct
{
    float hum;
    float temp;
} DHT_data;

typedef struct {
    GPIO_TypeDef *DHT_Port;
    uint16_t DHT_Pin;
} DHT_sensor;

DHT_data DHT_getData(DHT_sensor *sensor);

#endif
